package cn.wfu.rlrjds.app.repaire.dao;

import java.util.List;
import java.util.Map;

import cn.wfu.rlrjds.app.bean.Count;
import cn.wfu.rlrjds.app.bean.RepaireSearch;
import cn.wfu.rlrjds.app.repaire.domain.Repaire;
import cn.wfu.rlrjds.app.repairman.domain.Repaireman;
import cn.wfu.rlrjds.app.user.domain.User;
import cn.wfu.rlrjds.common.dao.IMybatisDao;

public interface IRepaireDao extends IMybatisDao<Repaire, String> {
	public static final String SQL_UPDATEREPAIRENAME = "updateRepaireName";
	public static final String SQL_ADDEVALUATE = "addEvaluate";
	public static final String SQL_UPDATECONFIRMSTATUS = "updateConfirmStatus";
	public static final String SQL_GETALLREPAIREBYREPAIRESTATUS = "getAllRepaireByRepaireStatus";
	public static final String SQL_UPDATEREPAIRSTATUS = "updateRepairStatus";
	public static final String SQL_LIST = "list";
	public static final String SQL_FINDCOUNTGROUPBYCOLLEGE = "findCountGroupByCollege";
	public static final String SQL_FINDTYPECOUNT = "findTypeCount";
	public static final String SQL_FINDAPARTMENTGOODSCOUNT = "findApartmentGoodsCount";
	public static final String SQL_FINDAPARTMENTNETCOUNT = "findApartmentNetCount";
	public static final String SQL_FINDSCHOOLGOODSCOUNT = "findSchoolGoodsCount";
	public static final String SQL_UPDATEISDELETEBYIDS = "updateIsdeleteByIds";

	void updateRepaireName(User user);

	void addEvaluate(Map<String, String> map);

	List<Repaire> getAllRepaireByRepaireStatus();

	void updateConfirmStatus(Map<String, String> map);

	void updateRepairStatus(Repaire repaire);

	List<Repaire> list(RepaireSearch repaireSearch);

	public List<Count> findCountGroupByCollege();

	List<Integer> findTypeCount();

	List<Integer> findApartmentGoodsCount();

	List<Integer> findApartmentNetCount();

	List<Integer> findSchoolGoodsCount();

	void updateIsdeleteByIds(String[] ids);

}
